# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Saijin-Naib <Saijin-Naib_package-maintenance@outlook.com>
pkgname=xfce4-mailwatch-plugin
pkgver=1.3.1
pkgrel=1
pkgdesc="a multi-protocol, multi-mailbox mail watcher"
url="https://goodies.xfce.org/projects/panel-plugins/xfce4-mailwatch-plugin"
arch="all"
license="GPL-2.0"
depends=""
depends_dev=""
makedepends="$depends_dev intltool libx11-dev glib-dev gtk+2.0-dev
	xfce4-panel-dev libxfce4ui-dev exo-dev libgcrypt-dev gnutls-dev"
subpackages="$pkgname-lang"
source="https://archive.xfce.org/src/panel-plugins/xfce4-mailwatch-plugin/${pkgver%.*}/xfce4-mailwatch-plugin-$pkgver.tar.bz2"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--enable-ssl
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
cc84c0511fff983283f6af132ff224f62373a1bb608f14b332a75f259f7842491b09f7d9f9d833cb31f81eb392a1b55fe4bf6da8a15b4c62abd2e9640392fb1d  xfce4-mailwatch-plugin-1.3.1.tar.bz2
"
